﻿// <copyright file="IUpdate.cs" company="EDD Solutions Ltd.">
// Copyright (c) EDD Solutions Ltd. 2010.
//
// This file is part of Sharepoint.Manipulator.Net.
//
// Sharepoint.Manipulator.Net is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Sharepoint.Manipulator.Net is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Sharepoint.Manipulator.Net.  If not, see http://www.gnu.org/licenses/.
// </copyright>
// <author>$Author$</author>
// <date>$Date$</date>
// <revision>$Revision$</revision>
namespace Sharepoint.Manipulator.Net
{
    using System.Collections.Generic;

    /// <summary>
    /// Interface describing the functionality used to update something.
    /// </summary>
    public interface IUpdate
    {
        /// <summary>
        /// Update a List Item
        /// </summary>
        /// <param name="itemId">the unique id of the list item</param>
        /// <param name="updateFieldValues">the fieldname=value pairs to update</param>
        /// <returns>treu if the update succeded, false otherwise.</returns>
        bool UpdateItem(string itemId, IDictionary<string, string> updateFieldValues);
    }
}
